package com.bw.module_service.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter
import com.bw.module_service.ui.fragment.InspectionRecordFragment
import com.bw.module_service.ui.fragment.InspectionStabdardFragment
import com.bw.module_service.ui.fragment.WorkOrderRecordFragment


class ViewPageAdapter(fm: FragmentManager): FragmentPagerAdapter(fm) {
    private val list = listOf(
        InspectionStabdardFragment(), InspectionRecordFragment(),
        WorkOrderRecordFragment()
    )
    override  fun getCount():Int{
        return list.size
    }
    override fun getItem(position:Int): Fragment {
        return list[position]
    }
}